package com.pactera.madp.cp.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@TableName("cp_work_agent")
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "企业应用表")
public class WorkAgentEntity extends BaseEntity<WorkAgentEntity> {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "企业id")
    private Integer corpId;

    @ApiModelProperty(value = "微信应用id")
    private String wxAgentId;

    @ApiModelProperty(value = "微信应用secret")
    private String wxSecret;

    @ApiModelProperty(value = "应用名称")
    private String name;

    @ApiModelProperty(value = "应用方形头像")
    private String squareLogoUrl;

    @ApiModelProperty(value = "应用详情")
    private String description;

    @ApiModelProperty(value = "应用是否被停用 0否1是")
    private Integer close;

    @ApiModelProperty(value = "应用可信域名")
    private String redirectDomain;

    @ApiModelProperty(value = "应用是否打开地理位置上报 0：不上报；1：进入会话上报")
    private Integer reportLocationFlag;

    @ApiModelProperty(value = "是否上报用户进入应用事件。0：不接收；1：接收")
    private Integer isReportenter;

    @ApiModelProperty(value = "应用主页url")
    private String homeUrl;

}
